<?php

include_once 'Statement.php';
include_once 'ExpressionCollection.php';

class EchoStatement extends Statement
{
    
    public function __construct(ExpressionCollection $OutputParameters = null)
    {
        parent::__construct();
        
        is_null($OutputParameters) ?
            $this->OutputParameters = new ExpressionCollection() :
            $this->set_OutputParameters($OutputParameters);
        
    }
    
    public function __set($name, $value)
    {
        parent::__set($name, $value);
        
        if($name == 'OutputParameters')
        {
            $this->set_OutputParameters($value);
        }
    }
    
    public function __get($name)
    {
        $ret = parent::__get($name);
        
        if($ret != null)
        {
            return $ret;
        }
        
        if($name == 'OutputParameters')
        {
            return $this->get_OutputParameters();
        }
    }
    
    public function get_OutputParameters()
    {
        return $this->OutputParameters;
    }

    public function set_OutputParameters(ExpressionCollection $OutputParameters)
    {
        $this->OutputParameters = $OutputParameters;
    }

    private $OutputParameters;
}

?>
